"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/7/7 10:24
@Description : 
请求参数编码：  utf-8  gbk
"""
import requests
from urllib import parse
#  https://www.baidu.com/s?wd=%E5%BD%93%E5%BD%93%E7%BD%91&number=2

key_word = {
    'wd':'当当网'
}

wd_encode = parse.urlencode(key_word)
url = 'http://www.baidu.com/s?'+wd_encode
response = requests.get(url)
print(response.text)
